package com.example.springboot.entity.vo;


import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class RouterVo {
    private String path;
    private String component;
    private boolean alwaysShow;
    private  String name;
    private  Meta meta;
    private  Long orderNum;
    @Data
    @AllArgsConstructor
    public class Meta{
        private String title;
        private String icon;
        private Object[] roles;
        private  Long orderNum;
    }
    private List<RouterVo> children=new ArrayList<>();
}
